
     <div id="content" class="clear">
     <div id="main" class="clear">
     <div id="head" class="clear">
     <h1>Images gallery</h1>
     <div id="actions"> 
     <a href="#" class="button secondary">Delete images</a>
      <a href="<?php echo base_url('pic/post')?>" class="button primary">Upload new image</a>
      </div>
      <!-- end page actions-->
      </div>
      <div id="topOptions" class="clear">
      <ul class="pagination">
       <li class="button small pagePrev">
        <a href="#" title="Previous page">Previous</a></li>
		<li class="first"> <a href="#">1</a></li>
		 <li> <a href="#">2</a></li>
		  <li class="active"> <a href="#">3</a></li>
		   <li>...</li>
		    <li> <a href="#">7</a></li>
		     <li class="last"> <a href="#">8</a></li>
		      <li class="button small pageNext"> <a href="#" title="Next page">Next</a></li>
  </ul>
      </div>
      <div id="gallery" class="clear">
      <?php
		  foreach($pics as $row)
		  { 
		  	?>
      <div class="photo"> 
      <a href="#"> <img class="thumbnail" src="<?php echo base_url().$row['image'];?>" alt="Photo" title="Thumbnail" /></a>
      <div class="imageInfo"> 
      <a class="actionEdit" href="<?php echo base_url('pic/edit')."/".$row['id']; ?>" title="Edit">Edit</a> 
      <a class="actionDelete" href="<?php echo base_url('pic/drop')."/".$row['id'];?>" title="Delete">Delete</a>
      </div>
      </div>
      <?php } ?>
     </div>


<div id="bottomOptions" class="clear">
<ul class="pagination"> 
<li class="button small pagePrev"> <a href="#" title="Previous page">Previous</a></li> 
<li class="first"> <a href="#">1</a></li> <li> <a href="#">2</a></li> 
<li class="active"> <a href="#">3</a></li> 
<li>...</li> <li> <a href="#">7</a></li> 
<li class="last"> <a href="#">8</a></li> 
<li class="button small pageNext"> <a href="#" title="Next page">Next</a></li>
</ul>
</div>
</div>
<div id="sidebar">
<div id="subnav" class="sidebox">
<h1>图片分类</h1>
<ul> 
<li> <a href="#">Category 1</a></li>
<li class="active"> <a href="#">Category 2</a></li>
 <li> <a href="#">Category 3</a></li> <li> <a href="#">Category 4</a></li>
 </ul>
 </div>
<div id="boxFirst" class="sidebox clear">
<h1>Simple search</h1>
<div class="boxContent clear">
<form id="formFilters" class="sideForm" action="#" method="get">
<fieldset><legend>Search</legend>
<div class="field clear"> 
<label for="txtNameSide">Name:</label> 
<input id="txtNameSide" class="text full" type="text" value="" /></div> 
<input id="btnFind" class="button primary" type="submit" value="Find" />
</fieldset></form></div></div>
<div id="summary" class="sidebox clear">
<h1>Statistics</h1>
<div class="boxContent clear">
<dl class="clear"><dt>Total files:</dt><dd>525</dd>
<dt>Total size:</dt><dd>346 MB</dd><dt class="last">Disk usage:</dt>
<dd class="last">35%</dd></dl></div></div></div></div><div id="push">&nbsp;
</div></div>
